<* include file=$header_file *>
<script type="text/JavaScript">
	if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='Field&nbsp;&raquo;&nbsp;<* $title *>';if(parent.$('add2custom')) parent.$('add2custom').innerHTML='<* $title *>';
</script>
<div class="itemtitle">
  <h3><* $title *>&nbsp;&raquo;&nbsp;Field List
    <input  type="button" value="  Refresh " class="btn" onClick="window.location.reload()"/>&nbsp;<input  type="button" value="  Add " class="btn" onClick="window.location.href='/<* $controller *>/add'"/>
  </h3>
</div>
<div id="main_content"> <* $page *>
  <table class="tb tb2 ">
    <tr class="tdhover" >
      <th class="partition">Field ID</th>
      <th class="partition">Field Type</th>
      <th class="partition">Field Name</th>
      <th class="partition">Field Order</th>
      <th class="partition">Branch</th>
      <th class="partition">Function</th>
    </tr>
    <* foreach from=$result item=item key=key *>
    <tr class="tdhover">
      <td ><* $item.field_ID *></td>
      <td ><* $item.field_type *></td>
      <td ><* $item.field_name *></td>
      <td ><* $item.field_order *>&nbsp;</td>
      <td ><* $item.branch_id *></td>
      <td ><a href="/<*$controller*>/edit/field_ID/<*$item.field_ID*>">Edit</a> | <a href="/<*$controller*>/delete/field_ID/<*$item.field_ID*>" onclick="if(confirm('Really delete?')) {return true;} else {return false;}">Delete</a></td>
    </tr>
    <* /foreach*>
  </table>
  <* $page *> </div>
<* include file=$bottom_file *>